#include <bits/stdc++.h>
using namespace std;
int a, b, m;
int main()
{
	cin >> a >> b >> m;
	int c = a % m, d = b % m;
	if(c == d)
		cout << "√";
	else
		cout << "×";
	return 0;
}